<?php

require_once '../include/common.inc.php';

if (!checkAdmin()) {
    header("LOCATION:index.php");
    exit;
}

$menu_index = 1;
$page_title = 'JANSEN';
$guide_message = 'Product | Product Gallery | ADD';

getMyParam('name');

$name = ($name == 'Enter name ...') ? '' : $name;

$sql = "SELECT `id`, `name` FROM `category` WHERE `fid` = 0 ORDER BY `seq` ASC, `id` DESC";
$query = $db->query($sql);
while($rs = $db->fetch_array($query)) {
    $photo_category_ary[$rs['id']] = $rs['name'];
}

include_once(JANSEN_ROOT . 'admin/menu_list.php');
require_once PrintEot('a_header');
require_once PrintEot('a_p_product_gallery_add');
require_once PrintEot('a_footer');

?>